package io;

import java.io.*;

public class RW {
    public static void main(String[] args) throws IOException {
        /*FileReader fr = new FileReader("a.txt");

        int len=0;

        *//*while ((len = fr.read()) != -1) {
            System.out.println((char)len);
        }*//*
        char[] ch = new char[1024];
        while ((len = fr.read(ch)) != -1) {
            System.out.println(new String(ch,0,len));
        }

        fr.close();*/
        FileWriter fw = new FileWriter("c.txt");
        fw.write(97);
        fw.flush();
        fw.write(98);
        fw.close();


    }
}
